import { createStore } from 'vuex'
export default createStore({
  state: {
    num: '1',
    // file: [],
  },
  getters: {},
  mutations: {
    /*    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      //console.log(file, file.content)
      const form = new FormData()
      //注意文件数据在file.file里
      form.append('file', file.file)
      upload(form).then((res) => {
        //console.log(res.data.imageUrl)
        file.value = res.data.imageUrl
        console.log(file.value)
      })
    }, */
  },
  actions: {},
  modules: {},
})
